<?php

use yii\helpers\Html;
use yii\helpers\Url;
use frontend\modules\common\models\BaseParam;

/* @var $this yii\web\View */
/* @var $model common\models\BasMember */

$this->title = '分馆基本信息';
?>
<div class="general-default-index">
    <h4>用户基本信息</h4>

    <div class="bas-member-view">

        <table id="w0" class="table table-striped table-bordered detail-view">
            <tbody>
            <tr>
                <th style="width: 200px;">当前用户数量：</th>
                <td><?= $userNum ?>人</td>
            </tr>
            </tbody>
        </table>
    </div>
    <h4>资源基本信息</h4>
    <div class="bas-member-view">

        <table id="w1" class="table table-striped table-bordered detail-view">
            <tbody>
            <tr>
                <th>名称</th>
                <th>资源数量</th>
                <th>资源访问量</th>
            </tr>
            <?php foreach ($data as $v): ?>
                <tr>
                    <td><?= $v['type'] == 0 ? '' : BaseParam::CodeHelper(BaseParam::$resourceType, $v['type']) ?>资源总量</td>
                    <td><?=$v['num']?></td>
                    <td><?=$v['look_num']?></td>
                </tr>
            <?php endforeach; ?>

            </tbody>
        </table>
    </div>
</div>
